package com.java.simple.smallspring.aop.impl;

import com.java.simple.smallspring.aop.IUserService;
import java.util.Random;

/**
 * @author zhoujunlin
 * @date 2022年09月10日 16:56
 * @desc
 */
public class UserServiceImpl implements IUserService {

    @Override
    public String queryUserInfo() {
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "zhoujl:10025:上海";
    }

    @Override
    public String register(String userName) {
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "注册用户:" + userName + ":success!";
    }
}
